<?php 
session_start();
include 'include/defaults.php';
include 'include/language.php';
$_SESSION ['userid'] = '';
$_SESSION ['sesionid'] = '';

?>

<html>
<head>
<link type="image/x-icon" href="favicon.ico" rel="icon" />
<link type="image/x-icon" href="favicon.ico" rel="shortcut icon" />
<title><?php echo "$text_app_name v$app_version";?></title>
<link href="css/default.css" rel="stylesheet" type="text/css" />	
<link href="css/botones.css" rel="stylesheet" type="text/css" />	
</head>

<body onLoad="document.loginform.user.focus();">
<br/><br/><br/><br/><br/><br/><br/><br/>
<div class="login_style"><img src="img/logo.png" border=0/></div><br/><br/>
<div class="login_appname"><?php echo "$text_app_name v$app_version";?></div><br/>
<div class="login_style"><center><form id="loginform" method="post" name="loginform" action="login.php" onSubmit="javascript:return false;">

<table>
<tr class="login_text"><td><?php echo "$text_login_username";?></td><td>&nbsp;:&nbsp;</td><td><input type="text" name="user" id="user" value="" size="20"/></td></tr>
<tr class="login_text"><td><?php echo "$text_login_password";?></td><td>&nbsp;:&nbsp;</td><td><input type="password" name="pass" value="" size="20"/></td></tr>
<tr><td>&nbsp;</td><td>&nbsp;</td><td><div class="buttonwrapper">
<a class="botongris" href="#" onClick="javascript:botonLogin();"><span><?php echo "$text_login_button";?></span></a> <a class="botongris" href="#" onClick="javascript:loginform.reset();" style="margin-left: 6px"><span><?php echo "$text_login_reset";?></span></a>
</div></td></tr>
</table>
<table align="center">
<tr>
  <td colspan="3" class="login_error">
  <?php 
  		if($_GET['err'] == 1 )
			echo "* $text_errn01";
	  	if($_GET['err'] == 2 )
			echo "* $text_errn02";
		if($_GET['err'] == 3 )
			echo "* $text_errn03";?></td>
  </tr>
</table>

</form></center></div>

<br/><br/><br/>

<div class="login_copyright"><?php echo "$text_copyright";?></div>
<script type="text/javascript" src="js/login.js"></script>
</body>
</html>
